﻿@page
@model Logger7.Pages.Logger.DetailsModel
@{
    ViewData["Title"] = "日志详情";
}
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-dark bg-dark border-bottom box-shadow mb-3 fixed-top">

    <div class="container-fluid">
        <a class="navbar-brand" asp-page="./Index">日志列表</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <li class="nav-item">
                    <a class="nav-link disabled" href="#">详情</a>
                </li>
            </ul>
            <form class="d-flex" role="search" id="Form1" method="post">
                <input class="btn btn-outline-warning" type="submit" value="删除" />
            </form>
        </div>
    </div>
</nav>
<table class="table table-striped" style="margin-top:70px">
    <tr>
        <th style="min-width:60px">
            @Html.DisplayNameFor(model => model.Item.Id)
        </th>
        <td>
            @Html.DisplayFor(model => model.Item.Id)
        </td>
    </tr>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Item.Dt)
        </th>
        <td>
            @Model.Item.Dt.ToString("yyyy/MM/dd HH:mm:ss.fff")
        </td>
    </tr>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Item.LogLevel)
        </th>
        <td>
            @Html.DisplayFor(model => model.Item.LogLevel)
        </td>
    </tr>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Item.Name)
        </th>
        <td>
            @Html.DisplayFor(model => model.Item.Name)
        </td>
    </tr>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Item.Msg)
        </th>
        <td style="word-break:break-all; word-wrap:break-all;">
            <brs>@Model.Item.Msg</brs>
        </td>
    </tr>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Item.Exception)
        </th>
        <td style="word-break:break-all; word-wrap:break-all;">
            <brs>@Model.Item.Exception</brs>
        </td>
    </tr>
</table>
 